<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
  <link rel="stylesheet" type="text/css" href="msoffice.css" />
  <Title>C64 Studio</Title>
</HEAD>

<body>
  <H3>Media Manager</H3>
  <div id="mybody">
    The Media Manager is a command line tool to handle several emulator media formats.<br>
    <br>
    The Media Manager is entirely controlled by arguments passed to it:<br>
    <br>
    <br>
    <pre>
    mediamanager.exe [-d64 &lt;disk image&gt;]
                     [-t64 &lt;tape file&gt;]
                     [-import &lt;file name&gt;[,load address]]
                     [-export &lt;file name&gt;]
                     [-renameto &lt;file name&gt;]
                     [-listfiles]
    </pre>


    load address can be given as decimal, hexadecimal (prefix $ or 0x)<br>
    The filename given to -renameto is used for the actually written file when exporting<br>
    The filename given to -renameto is used for the file info entry when importing
  </div>
  <a name="-d64"></a>
  <H2>-d64 &lt;disk image&gt;</H2>
  <div id="mybody">
    Sets the media manager in disk (.d64) mode and sets the image filename to the following argument
    <br>
    <br>
  </div>
  <a name="-t64"></a>
  <H2>-t64 &lt;tape file&gt;</H2>
  <div id="mybody">
    Sets the media manager in tape (.t64) mode and sets the image filename to the following argument
    <br>
    <br>
  </div>
  <a name="-import"></a>
  <H2>-import &lt;file name&gt;[,load address]</H2>
  <div id="mybody">
    Imports a file in the selected medium. The used load address defaults to $0801, but can be overridden by adding ,loadaddress to the filename.<br>
    -renameto can be used to override the file name inside the medium.
    <br>
    <br>
    The load address is interpreted as decimal unless $ or 0x is prefixed, then it is treated as hexadecimal.
    <br>
    <br>
  </div>
  <a name="-export"></a>
  <H2>-export &lt;file name&gt;</H2>
  <div id="mybody">
    Exports a file with the passed name from the medium. If -renameto is not set the actually written file uses the same file name as inside the medium.
    <br>
    <br>
  </div>
  <a name="-renameto"></a>
  <H2>-renameto &lt;file name&gt;</H2>
  <div id="mybody">
    Can be used to override the defaulting file name for export/import.
    <br>
    <br>
  </div>
  <a name="-listfiles"></a>
  <H2>-listfiles</H2>
  <div id="mybody">
    List all contained files in the passed medium.
    <br>
    <br>
  </div>
</body>
</HTML>
